package com.hhd.flow.engine.support;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.io.InputStream;
import java.io.OutputStream;

@Getter
@Setter
@AllArgsConstructor
public class ClassPathResource implements FlowResource {
    private String name;
    private String path;

    public InputStream getInputStream() {
        return ClassPathResource.class.getResourceAsStream(path);
    }

    @Override
    public OutputStream getOutputStream() {
        return null;
    }
}
